/*
 * @Description: 
 * @Version: 2.0
 * @Autor: ftt
 * @Date: 2022-06-11 09:56:08
 * @LastEditors: ftt
 * @LastEditTime: 2022-06-11 09:58:23
 */

import 'package:dio/dio.dart';

class NormalInterceptor extends Interceptor {
  NormalInterceptor(
      {this.request = true,
      this.requestHeader = true,
      this.requestBody = true});

  bool request;

  /// Print request header [Options.headers]
  bool requestHeader;

  /// Print request data [Options.data]
  bool requestBody;

  @override
  void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
    options.headers['Authorization'] = "token";
    handler.next(options);
  }
}
